page_planPilotInfo = (state={},action)->
  switch action.type
    when 'PLANPILOT/GET_LIST_START'
      Object.assign {},state,{isLoading:true,refreshing:false}
    when 'PLANPILOT/GET_LIST_COMPLETED'
      debugger
      state.collections[action.payload.key] = action.payload.list
      Object.assign {},state,{
        collections:Object.assign {},state.collections
        isLoading:false
        refreshing:false
      }
    when 'PLANPILOT/REFRESH_LIST_START'
      Object.assign {},state,{
        isLoading:false
        refreshing:true
      }
    when 'PLANPILOT/REFRESH_LIST_COMPLETED'
      debugger
      state.collections[action.payload.key] = action.payload.list
      Object.assign {},state,{
        collections:Object.assign {},state.collections
        isLoading:false
        refreshing:false
      }
    else
      state

module.exports = page_planPilotInfo
